﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Publicuse.Entity.other
{
    /// <summary>
    /// Echarts柱形图数据模型
    /// </summary>
    public class EchartsColumnar
    {
        /// <summary>
        /// 图形名称
        /// </summary>
        public string text { get; set; }

        /// <summary>
        /// 图例标题
        /// </summary>
        public string[] legenddata { get; set; }


        /// <summary>
        /// X轴数据 ：['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
        /// </summary>
        public string[] xAxisdata { get; set; }

        /// <summary>
        /// Y轴数据：[{name: '销量',type: 'bar',data: [5, 20, 36, 10, 10, 20]}]
        /// </summary>
        public Echartsseries[] series { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public EchartsColumnar()
        {
            this.series = new Echartsseries[] { };
        }
    }

    /// <summary>
    /// 柱形图Y轴数据模型
    /// </summary>
    public class Echartsseries
    {
        public string name { get; set; }

        public string type { get; set; }

        public string[] data { get; set; }
    }
}
